//
//  RewardCell.m
//  MoXiProject
//
//  Created by 周筱雯 on 2017/6/30.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "RewardCell.h"
#import "GreatGodModel.h"

@interface RewardCell()
@property (weak, nonatomic) IBOutlet UILabel *rewardmingc;
@property (weak, nonatomic) IBOutlet UIImageView *rewardImg;
@property (weak, nonatomic) IBOutlet UILabel *rewardName;
@property (weak, nonatomic) IBOutlet UILabel *rewardScore;

@end

@implementation RewardCell


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.rewardImg.layer.cornerRadius = self.rewardImg.width / 2;
    self.rewardImg.layer.masksToBounds = YES;
}
-(void)setRewardCellDataSource:(GreatGodModel *)greatModel index:(NSIndexPath *)indexPath{
    [self.rewardmingc setText:[NSString stringWithFormat:@"%ld",indexPath.row + 1]];
    [self.rewardImg sd_setImageWithURL:[NSURL URLWithString:greatModel.greatimgPath] placeholderImage:DEF_NORMAL_DEFAULT_IMAGE];
    [self.rewardName setText:greatModel.greatusername];
    [self.rewardScore setText:[NSString stringWithFormat:@"%@",greatModel.greatscore]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
